<div class="form">
<FORM method="post" action="/backend/actions/save/" onsubmit="$('n_html').value=CKEDITOR.instances['n_html'].getData();">
    <H1>{if $Presscenter->isNew()}Добавление записи{else}Редактирование '{$Presscenter->title|stripslashes}'{/if}</H1>
    <div class="operation">
    	<a href="{$fvConfig->get('dir_web_root')}school/" onclick="go('{$fvConfig->get('dir_web_root')}actions/'); return false;" class="left">вернутся к списку</a>
    	<div style="clear: both;"></div>
    </div>
    <fieldset>
        <legend>Общая информация</legend>
   		<table>
   			<tr>
   				<td><label for="create_date">Дата публикации</label></td>
   				<td>
   					<input type="text" id="create_date" name="n[create_date]" value="{$Presscenter->create_date}" readonly="readonly"> 
    				<img src="{$fvConfig->get('dir_web_root')}img/calendar_delete.png" width="16" height="16" border="0" class="dateselector_clear" title="очистить дату" onclick="$('create_date').value='';">
    				<img src="{$fvConfig->get('dir_web_root')}img/calendar.png" width="16" height="16" border="0" class="dateselector" id="create_date_pick" title="выбор даты">
   				</td>
   			</tr>
        	<tr>
        		<td><label for="title">Заголовок:</label></td>
        		<td><input type="text" id="title" name="n[title]" value="{$Presscenter->title|escape|stripslashes}"/></td>
        	</tr>
        	<tr>
        		<td><label for="title">Краткое содержание:</label></td>
        		<td><textarea id="annotation" rows=10 name="n[annotation]">{$Presscenter->annotation|escape|stripslashes}</textarea></td>
        	</tr>
        	<tr>
        		<td><label for="author">Содержание:</label></td>
        		<td style="padding: 2px 2px 10px 10px;">{$editor}</td>
        	</tr>
    	</table>
    </fieldset>
    <div class="buttonpanel">
        <input type="submit" name="save" value="Сохранить" class="button"  onclick="$('redirect').value = '';">
        <input type="submit" name="save_and_return" value="Сохранить и выйти" class="button" onclick="$('redirect').value = '1';">
    </div>
    <input type="hidden" name="n[type]" value="action" />
    <input type="hidden" name="id" id="id" value="{$Presscenter->getPk()}" />
    <input type="hidden" id="redirect" name="redirect" value="" />
</form>
</div>
{literal}
<script>
    Calendar.setup({
        inputField : "create_date",
        ifFormat : "%Y-%m-%d %H:%M:%S",
        button : "create_date_pick",
        align : "Bl",
        firstDay: 1,
        showsTime: true,
        singleClick : true
    });
</script>
{/literal}